package com.unswift.window.table;

import javax.swing.table.DefaultTableModel;

@SuppressWarnings("serial")
public class TableModel extends DefaultTableModel{

	private TableTitle[] columns;
	public TableModel(TableTitle[] columns, Object[][] data) {
		super(data, columns);
		this.columns=columns;
	}
	
	@Override
	public boolean isCellEditable(int row, int column) {
		return columns[column].isEditor();
	}
	
	public TableTitle[] getColumns() {
		return columns;
	}
	
}
